'use strict';
const {
  Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
  class Activity extends Model {
    /**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
    static associate(models) {
      // define association here
    }
  }
  Activity.init({
    name: DataTypes.STRING,
    planNumber: DataTypes.INTEGER,
    nowNumber: DataTypes.INTEGER,
    form: DataTypes.INTEGER,
    type: DataTypes.INTEGER,
    applicationStartTime: DataTypes.DATE,
    applicationEndTime: DataTypes.DATE,
    formalStartTime: DataTypes.DATE,
    formalEndTime: DataTypes.DATE,
    society: DataTypes.INTEGER,
    score: DataTypes.STRING,
    status: DataTypes.INTEGER,
    introduce: DataTypes.STRING,
    person: DataTypes.STRING,
    imgurl: DataTypes.STRING,
    summary: DataTypes.STRING,
    address: DataTypes.STRING,
    examine: DataTypes.INTEGER,
    planBook: DataTypes.STRING,
    attachment: DataTypes.STRING
  }, {
    sequelize,
    modelName: 'Activity',
  });
  return Activity;
};